import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SLogTwelveAnimalBet
    
    export  class SLogTwelveAnimalBet extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SLogTwelveAnimalBet();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.proxyId);
            arg1.writeInt(this.serverId);
            arg1.writeInt(this.animalBetAmount);
            arg1.writeInt(this.animalBetPlayerNum);
            arg1.writeInt(this.colorBetAmount);
            arg1.writeInt(this.colorBetPlayerNum);
            arg1.writeInt(this.totalBetAmount);
            arg1.writeInt(this.animalResutl);
            arg1.writeInt(this.colorResult);
            arg1.writeInt(this.animalRewardAmount);
            arg1.writeInt(this.animalRewardPlayer);
            arg1.writeInt(this.colorRewardAmount);
            arg1.writeInt(this.colorRewardPlayer);
            arg1.writeInt(this.currentProfit);
            arg1.writeInt(this.totalProfit);
            arg1.writeInt(this.cleanTimes);
            arg1.writeInt(this.roundNum);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.proxyId = arg1.readInt();
            this.serverId = arg1.readInt();
            this.animalBetAmount = arg1.readInt();
            this.animalBetPlayerNum = arg1.readInt();
            this.colorBetAmount = arg1.readInt();
            this.colorBetPlayerNum = arg1.readInt();
            this.totalBetAmount = arg1.readInt();
            this.animalResutl = arg1.readInt();
            this.colorResult = arg1.readInt();
            this.animalRewardAmount = arg1.readInt();
            this.animalRewardPlayer = arg1.readInt();
            this.colorRewardAmount = arg1.readInt();
            this.colorRewardPlayer = arg1.readInt();
            this.currentProfit = arg1.readInt();
            this.totalProfit = arg1.readInt();
            this.cleanTimes = arg1.readInt();
            this.roundNum = arg1.readInt();
            return;
        }

        public /* const */_type: int=2047;

        public /* var */proxyId: int;

        public /* var */serverId: int;

        public /* var */animalBetAmount: int;

        public /* var */animalBetPlayerNum: int;

        public /* var */colorBetAmount: int;

        public /* var */colorBetPlayerNum: int;

        public /* var */totalBetAmount: int;

        public /* var */animalResutl: int;

        public /* var */colorResult: int;

        public /* var */animalRewardAmount: int;

        public /* var */animalRewardPlayer: int;

        public /* var */colorRewardAmount: int;

        public /* var */colorRewardPlayer: int;

        public /* var */currentProfit: int;

        public /* var */totalProfit: int;

        public /* var */cleanTimes: int;

        public /* var */roundNum: int;

        public static /* var */_regist: SLogTwelveAnimalBet;
    }

            SLogTwelveAnimalBet._regist = new SLogTwelveAnimalBet(true);
        